home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / flogger.zip / INSTALLA < prev    next >
Text File  |  1992-12-30  |  2KB  |  51 lines

  1.  
  2. Makefile is set up for SunOS 4.1.  If you want to use gcc, move 
  3. the # comment characters in the makefile around appropriately.
  4.  
  5. If your machine has memmove() comment out the #define in sorting.h
  6.  
  7. If you don't have memcpy, comment back in:
  8.   #define memcpy(to, from, n) bcopy(from, to, n)
  9. or better yet upgrade your OS.
  10.  
  11. Type "make" or "make flogger.static"
  12.  
  13. If you want to install the sort algorithm library for real
  14.  
  15.   su root
  16.   make install
  17.  
  18. ---
  19.  
  20. Potential portability problems:
  21.  
  22. Shared libraries might work differently, or not at all, on your
  23. machine.  Edit the makefile as necessary.
  24.  
  25. You might be missing mallinfo.  Some rewriting of the code will
  26. be in order.  I'll put some ifdef's around this sooner or later.
  27.  
  28. If your machine doesn't use a traditional stack, the stack information
  29. will be either plain wrong or it might cause segmentation faults.
  30. But if you don't care about the flogger routine-- no big deal.  The
  31. sort library itself should be quite portable, even if the test routine
  32. isn't.
  33.  
  34. The typedefs for chunk4 and chunk8 are thoroughly questionable.  If
  35. you have a more "natural" size on your machine, experiment.
  36.  
  37. If you are porting to a machine which doesn't care about alignment
  38. very much, you can remove the extra alignment tests from merge
  39. sort and quick sort for a marginal increase in sort speed under some 
  40. circumstances.
  41.  
  42. memcpy() is used--if you have a better block-copy function at your
  43. disposal, by all means plug it in.  Won't help much if you're only
  44. sorting 4-byte things like ints or pointers, though, 'cause
  45. merge_sort has special code for these anyway.  
  46.  
  47. send patches, bug fixes, plane tickets to pittsburgh, etc to mikey@ontek.com
  48.  
  49. I'm especially interested in portability of the merge_sort routine.
  50.  
  51.